﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Survey.master" AutoEventWireup="false" CodeFile="SurveyHome.aspx.vb" Inherits="SurveyHome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
<h2>Welcome to the site, please log in</h2>
<br />
    <a href="Main.aspx">Login</a>
</AnonymousTemplate>

<LoggedInTemplate>
<fieldset>
<legend>Tags</legend>
    <asp:GridView ID="GridView1" runat="server" DataSourceID="DSTags">
    </asp:GridView>
    <asp:SqlDataSource ID="DSTags" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT [Tag] FROM [QSurveyTag]"></asp:SqlDataSource>
</fieldset>

<fieldset>
<legend>Ratings for Surveys</legend>
</fieldset>

</LoggedInTemplate>
</asp:LoginView>
</asp:Content>

